//
//  LBAlertMessage.h
//  LBAlert
//
//  Created by LINAICAI on 2017/8/10.
//  Copyright © 2017年 LINAICAI. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
//注意这里的枚举指的是内容容器，不包含头部标题或者头部图片的
typedef NS_ENUM(NSUInteger, LBAlertMessageType) {
    LBAlertMessageTypeMessage,//普通文本
    LBAlertMessageTypeAttributedMessage,//属性文本
    LBAlertMessageTypeImageMessage,//带图片的文本
    LBAlertMessageTypeImageAttributedMessage,//带图片的属性文本
    LBAlertMessageTypeCustomView,//自定义视图
};
@interface LBAlertMessage : NSObject
//外部设置使用
@property(nonatomic , strong)NSString *message;
@property(nonatomic , strong)NSAttributedString *attributedMessage;
@property(nonatomic , assign)UIEdgeInsets textInsets;//文本外边距
@property(nonatomic , assign)NSTextAlignment textAlignment;//对齐方式

@property(nonatomic , strong)UIImage *image;//图片
@property(nonatomic , assign)UIEdgeInsets imageInsets;//图片外边距

@property(nonatomic , strong)UIView *customView;//自定义视图
@property(nonatomic , assign)UIEdgeInsets customViewInsets;//自定义视图外边距

@property(nonatomic , assign)NSInteger limit;//输入框字数限制
@property(nonatomic , assign , readonly)LBAlertMessageType type;

- (instancetype)initType:(LBAlertMessageType)type;
@end
